/**
*
* Titre : WebappBootStrap.java
* Description :
* Copyright : Copyright (c) 2013 JN Mauclair
* @author : JN MAUCLAIR
* @version : $Revision: $
*
* $Author$
* $Date$
*
*/
package fr.mauclair.domogeek.webapp;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;

public class WebappBootStrap {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {

		Server server = new Server(8080);

		WebAppContext context = new WebAppContext();
		context.setDescriptor("/src/main/webapp/WEB-INF/web.xml");
		context.setResourceBase("src/main/webapp");
		context.setContextPath("/dg");
		context.setParentLoaderPriority(true);

		server.setHandler(context);
		server.start();
		server.join();

	}

}
